<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>成功页面</title>
</head>
<body>
	<input type="hidden" id="messageHidden" value="${message}">
	<span id=message></span> 再过 <span id=time style="font-weight:bold;"></span> 秒就跳往主页。<br><br>
	如果没有跳转，请点击<a style="font-weight:bold;" href="http://localhost:8080/lazycoder/main"> 此处 </a>。
</body>
<script type="text/JavaScript">
	var secs = 5; //倒计时的秒数 
	for(var i=secs;i>=0;i--) { 
		window.setTimeout("doUpdate(" + i + ")", (secs-i) * 1000); 
	} 
	function doUpdate(num) { 
		document.getElementById("time").innerHTML = num ; 
		if (num == 0){
			window.location="http://localhost:8080/lazycoder/main";
		}
	}
	message = document.getElementById("messageHidden").value;
	document.getElementById("message").innerHTML = message ;
</script>

</html>